<?php

namespace App\Models\Train\TrainHistory\Repositories\Interfaces;

use App\Models\Train\TrainHistory\TrainHistory;
use Illuminate\Support\Collection;

interface TrainHistoryRepositoryInterface
{
    public function addByUserId(string $user_id, array $data): TrainHistory;

    public function findOneByUserCode(string $user_id, string $from_code, string $to_code): ?TrainHistory;

    public function listByUserId(string $user_id, int $limit = 6): Collection;

    public function clearByUserId(string $user_id): bool;
}